package com.key.service;

import com.key.common.R;
import com.key.common.dto.BorrowDTO;
import com.key.common.vo.AssetsTVO;
import com.key.entity.Assets;
import com.key.entity.BorrowAssets;
import com.key.entity.ReceiptAssets;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.List;

/**
 * @author tc
 * @create 2023-02-20 10:05
 */
public interface BorrowAssetsService {
     R creatBorrowed(List<Long> assetsCodes, BorrowAssets borrowAssets);

     //依据单号删除单据
    R deleteBorrowAssets(String BorrowNumbers);

    //依据条件修改单据
    R editBorrowAssets(BorrowDTO borrowDTO);

    //依据条件查找单据
    R findBorrowAssets(BorrowDTO borrowDTO);

    //查询可归还的借用单
    List<BorrowAssets> findCanReturnBorrowAssets();

    //查询借用订单下的资产
    List<Assets> findAssetsByBorrowAssets(BorrowAssets borrowAssets);

    //查询借用订单下的资产
    List<AssetsTVO> findAssetsTVOByBorrowAssets(BorrowAssets borrowAssets);

    //导出信息为ex表
    HSSFWorkbook getWorkBook();
}
